package com.yz.jdd.network.response;

import android.os.Parcel;
import android.os.Parcelable;

import com.yz.jdd.base.entity.Template;

import java.util.List;


/**
 * Created by shibin on 2017/2/13.
 * 活动充值送请求响应数据
 */

public class Response_BalTemp implements Parcelable {
    private String isFrist;//是否首次充值 1：是 0：否
    private String balance;//会员余额
    private List<Template> itemList;//模板集合

    public String getIsFrist() {
        return isFrist;
    }

    public String getBalance() {
        return balance;
    }

    public List<Template> getItemList() {
        return itemList;
    }

    protected Response_BalTemp(Parcel in) {
        isFrist = in.readString();
        balance = in.readString();
        itemList = in.createTypedArrayList(Template.CREATOR);
    }

    public static final Creator<Response_BalTemp> CREATOR = new Creator<Response_BalTemp>() {
        @Override
        public Response_BalTemp createFromParcel(Parcel in) {
            return new Response_BalTemp(in);
        }

        @Override
        public Response_BalTemp[] newArray(int size) {
            return new Response_BalTemp[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(isFrist);
        dest.writeString(balance);
        dest.writeTypedList(itemList);
    }
}
